package com.jjb.saas.demo.client.role.request;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author tzh * @date 2022年11月08日 21:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleUpdateCmd extends Command {
    @ApiModelProperty(value = "id",required = true)
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "角色名称",required = true)
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "角色类型",required = true)
    @NotBlank(message = "角色类型不能为空")
    private String roleTypeEnum;

    @ApiModelProperty(value = "权限组",required = true)
    @NotNull(message = "权限组不能为空")
    private List<Long> permsGroupIds;

    @ApiModelProperty(value = "版本",required = true)
    @NotNull(message = "版本不能为空")
    private Integer version;

}
